/** *****************  JAVA头文件说明  ****************
 * file name  :  PointsOrder.java
 * owner      :  xuhuafeng
 * copyright  :  UMPAY
 * description:  
 * modified   :  2017-5-5
 * *************************************************/ 

package com.busi.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

import com.busi.util.DateUtil;


/** ******************  类说明  *********************
 * class       :  PointsOrder
 * @author     :  xuhuafeng
 * @version    :  1.0  
 * description :  积分订单明细
 * ************************************************/

public class PointsOrder extends BaseModel implements Serializable {

	private static final long serialVersionUID = -8414518411059400985L;
	private String rpid;	//请求流水
	private String orderdate;	//订单日期
	private String orderid;	//订单编号
	private String appid;	//平台ID
	private String userid;	//平台用户ID
	private String outer_userid;	//外部平台用户ID
	private String mobileid;	//客户手机号
	private BigDecimal outer_points;	//第三方平台积分
	private BigDecimal points;	//平台积分
	private BigDecimal servicefee;	//手续费
	private String productname;	//商品名称
	private String ordertype;	//订单类型
	private String pointstype;	//积分类型
	private String orgorderdate;	//原始订单日期
	private String orgorderid;	//原始订单ID
	private String trace;	//交易流水
	private BigDecimal rate;	//积分兑换比率  ，中国银行： 联盟积分
	private Timestamp stltime;	//结算日期
	private Integer orderstate;	//订单状态
	private Timestamp outordertime;	//外部订单时间
	private Timestamp ordertime;	//订单完成时间
	private Timestamp expirtime;	//撤销犹豫期
	private String retcode;	//返回码
	private String retmsg;	//返回描述
	private Timestamp modtime;	//修改时间
	private Timestamp intime;	//入库时间
	private String m_mobileid;	//会员信息表注册手机号(mall.t_member_inf)
	
	private String otptype;
	private String optCode; //中国移动回退积分下发的验证码
	private String smsCodeId;
	public String getRpid() {
		return rpid;
	}
	public String getMobileid() {
		return mobileid;
	}
	public void setMobileid(String mobileid) {
		this.mobileid = mobileid;
	}
	public void setRpid(String rpid) {
		this.rpid = rpid;
	}
	public String getOrderdate() {
		return orderdate;
	}
	public void setOrderdate(String orderdate) {
		this.orderdate = orderdate;
	}
	public String getOrderid() {
		return orderid;
	}
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getOuter_userid() {
		return outer_userid;
	}
	public void setOuter_userid(String outer_userid) {
		this.outer_userid = outer_userid;
	}
	public BigDecimal getOuter_points() {
		return outer_points;
	}
	public void setOuter_points(BigDecimal outer_points) {
		this.outer_points = outer_points;
	}
	public BigDecimal getPoints() {
		return points;
	}
	public void setPoints(BigDecimal points) {
		this.points = points;
	}
	public BigDecimal getServicefee() {
		return servicefee;
	}
	public void setServicefee(BigDecimal servicefee) {
		this.servicefee = servicefee;
	}
	public String getProductname() {
		return productname;
	}
	public void setProductname(String productname) {
		this.productname = productname;
	}
	public String getOrdertype() {
		return ordertype;
	}
	public void setOrdertype(String ordertype) {
		this.ordertype = ordertype;
	}
	public String getPointstype() {
		return pointstype;
	}
	public void setPointstype(String pointstype) {
		this.pointstype = pointstype;
	}
	public String getOrgorderdate() {
		return orgorderdate;
	}
	public void setOrgorderdate(String orgorderdate) {
		this.orgorderdate = orgorderdate;
	}
	public String getOrgorderid() {
		return orgorderid;
	}
	public void setOrgorderid(String orgorderid) {
		this.orgorderid = orgorderid;
	}
	public String getTrace() {
		return trace;
	}
	public void setTrace(String trace) {
		this.trace = trace;
	}
	public BigDecimal getRate() {
		return rate;
	}
	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}
	public Timestamp getStltime() {
		Timestamp strToTimestamp = DateUtil.strToTimestamp("2000-01-01 00:00:00");
		boolean after = strToTimestamp.before(stltime);
		if(after){
			return stltime;
		}else{
			return null;
		}
	}
	public void setStltime(Timestamp stltime) {
		this.stltime = stltime;
	}
	public Integer getOrderstate() {
		return orderstate;
	}
	public void setOrderstate(Integer orderstate) {
		this.orderstate = orderstate;
	}
	public Timestamp getOutordertime() {
		Timestamp strToTimestamp = DateUtil.strToTimestamp("2000-01-01 00:00:00");
		boolean after = strToTimestamp.before(outordertime);
		if(after){
			return outordertime;
		}else{
			return null;
		}
	}
	public void setOutordertime(Timestamp outordertime) {
		this.outordertime = outordertime;
	}
	public Timestamp getOrdertime() {
		Timestamp strToTimestamp = DateUtil.strToTimestamp("2000-01-01 00:00:00");
		boolean after = strToTimestamp.before(ordertime);
		if(after){
			return ordertime;
		}else{
			return null;
		}
	}
	public void setOrdertime(Timestamp ordertime) {
		this.ordertime = ordertime;
	}
	public Timestamp getExpirtime() {
		Timestamp strToTimestamp = DateUtil.strToTimestamp("2000-01-01 00:00:00");
		boolean after = strToTimestamp.before(expirtime);
		if(after){
			return expirtime;
		}else{
			return null;
		}
	}
	public void setExpirtime(Timestamp expirtime) {
		this.expirtime = expirtime;
	}
	public String getRetcode() {
		return retcode;
	}
	public void setRetcode(String retcode) {
		this.retcode = retcode;
	}
	public String getRetmsg() {
		return retmsg;
	}
	public void setRetmsg(String retmsg) {
		this.retmsg = retmsg;
	}
	public Timestamp getModtime() {
		return modtime;
	}
	public void setModtime(Timestamp modtime) {
		this.modtime = modtime;
	}
	public Timestamp getIntime() {
		return intime;
	}
	public void setIntime(Timestamp intime) {
		this.intime = intime;
	}
	public String getM_mobileid() {
		return m_mobileid;
	}
	public void setM_mobileid(String m_mobileid) {
		this.m_mobileid = m_mobileid;
	}
	public String getOptCode() {
		return optCode;
	}
	public void setOptCode(String optCode) {
		this.optCode = optCode;
	}
	public String getSmsCodeId() {
		return smsCodeId;
	}
	public void setSmsCodeId(String smsCodeId) {
		this.smsCodeId = smsCodeId;
	}
	public String getOtptype() {
		return otptype;
	}
	public void setOtptype(String otptype) {
		this.otptype = otptype;
	}
	
}
